package struct.primary.array;

/**
 * @author MAX
 * @version 1.0
 * @description 初级数据结构-数组实例化测试
 * @date 2022/1/11 15:45
 */
public class ArrayTest {

    public static void main(String[] args) {
        Array<Integer> arr = new Array<>(5);
        arr.addLast(1);
        arr.addLast(2);
        arr.addLast(3);
        arr.addLast(4);
        arr.addLast(5);
        arr.addLast(6);

        System.out.println(arr.removeFirst());
        System.out.println(arr.removeLast());
        System.out.println(arr);
    }
}
